﻿#if WINDOWS_UWP || NETFX_CORE
using System;
using System.Threading.Tasks;

using Windows.ApplicationModel.Store;
using Windows.System;

#region File and License Information
/*
<File>
	<License>
		Copyright © 2009 - 2017, Daniel Vaughan. All rights reserved.
		This file is part of Calcium (http://calciumsdk.net), 
		which is released under the MIT License.
		See file /Documentation/License.txt for details.
	</License>
	<CreationDate>2013-05-01 12:48:53Z</CreationDate>
</File>
*/
#endregion

namespace Outcoder.LauncherModel.Launchers
{
	/* TODO: [DV] Comment. */
	public class MarketplaceDetailLauncher : LauncherBase<bool>, IMarketplaceDetailLauncher
	{
		public string ContentIdentifier { get; set; }

		public override async Task<bool> ShowAsync()
		{
			var storeUri = new Uri(string.Format("ms-windows-store:PDP?PFN={0}", CurrentApp.AppId));
			var result = await Launcher.LaunchUriAsync(storeUri);
			return result;
		}
	}
}
#endif